@import "src/styles/mixin";
@import "src/styles/variables";
.order-buy{
  padding-top:20px;
  //padding:20px 0  0 0;

  padding-bottom: calc(180px + constant(safe-area-inset-bottom));
  padding-bottom: calc(180px + env(safe-area-inset-bottom));
}
.popTips{
  text-align: right;
  font-size: 0;
  padding-bottom: 8px;
  .pop-tips-wrap{
    display: inline-block;
    padding: 0 16px;
    border-radius: 10px;
    background: #FFF1DA;
    color: #FFA04E;
    font-size: 24px;
    position: relative;
    // margin-top: -15px;
    line-height: 48px;
    height: 48px;
    ::after{
      content: '';
      display: inline-block;
      border: 9px solid transparent;
      border-bottom: 9px solid #FFF1DA;
      position: absolute;
      right: 50px;
      top: -16px;
    }
    .txt{
      display: inline-block;
      vertical-align: top;
    }
    .icon{
      margin-left: 20px;
      img{
        width: 20px;
        height: 24px;
      }
    }
  }
}
.miniprogram-root {
  .van-popup__close-icon{
    font-size: 44rpx;
  }
  .van-cell{
    padding: 20rpx 32rpx;
    font-size: 28rpx;
    line-height: 48rpx;
    box-sizing: border-box!important;
  }
  .item-title .van-checkbox__icon, .purchase_agreement .van-checkbox__icon, .purchase_agreement .van-checkbox__icon .van-icon{
    width: 28px;
    height: 28px;
  }
  .purchase_agreement .van-checkbox__icon .van-icon{
    font-size: 0.8em;
  }
}
.order-header{
  line-height: 90px;
  .select-ul{
    line-height: 90px;
    background: #fff;
    border-radius: 20px 20px 0 0;
    display: flex;
    margin: 0 25px 20px;
    overflow: hidden;
  }
  .select-item{
    flex:1;
    text-align: center;
    font-size: 28px;
    &.active{
      background: #F21228;
      color: #fff;
    }
  }
}
.item-block{
  margin:0 24px 20px;
  padding:25px;
  background:#fff;
  border-radius:20px;
  font-size:26px;
  line-height:40px;
  .title{
    position:relative;
    padding-left:18px;
    font-size:28px;
    font-weight:bold;
    &:before{
      position:absolute;
      content:"";
      top:8px;
      left:0;
      width:6px;
      height:26px;
      background:#F30C23;
    }
  }
  .card-tip{
    font-size: 20px;
    color: #F46610;
    padding: 20px;
    margin-bottom: 20px;
    background: #FFF5EB;
    border-radius: 12px;
  }
  &.item-block2{
    padding:0 25px;
    &.pd0 {
      padding: 0;
      .item-box {
        padding:0 25px;
      }
      .card-tip {
        padding: 0 13px;
        border-radius:0 0 20px 20px;
      }
    }
    .item-box{
      display: flex;
      border-bottom: 1px solid #EDEDED;
      &:last-child{
        border-bottom: none;
      }
      .item-title{
        font-size: 28px;
        color: #1A1A1A;
        line-height: 90px;
        height: 90px;
      }
      .smallsize{
        color: #F21228;
      }
      .hfSmall {
        color: #c8c9cc;
      }
      .item-con{
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        .item-span{
          font-size: 26px;
          // display: inline-block;
          color: #999999;
          &.span-red,.smallsize{
            color:#F21228;
          }
          &.hfSmall {
            color: #c8c9cc;
          }
          &.span-def{
            color: #333;
          }

        }
        .icon-right{
          display: inline-block;
          margin-left: 6px;
          padding: 4px;
          border: solid #666;
          border-width: 0 3px 3px 0;
          transform: rotate(-45deg);
          -webkit-transform: rotate(-45deg);
        }
        .class-icon{
          width: 18px;
          height: 18px;
          vertical-align: inherit;
          font-weight: bold;
          color: #666666;
        }
        .item-switch{
          border-color: #F2F2F2;
          .van-switch__node{
            box-shadow:0 0 0 0 #fff;
          }
        }
        .item-input{
          height: 90px;
          width: 100%;
          padding: 0px 0 0px 15px;
          text-align: right;
        }
      }
    }
    .item-li{
      line-height: 72px;
      font-size: 28px;
      span{
        font-weight: bold;
      }
    }
  }
  &.address{
    display:flex;
    align-items: center;
    line-height:46px;
    background:#fff url(https://img.wifenxiao.com/h5-wfx/images/address_bar.png) center bottom/contain no-repeat;
    &.self_address{
      background: #fff;
      .left{
        width: 38px;
        height: 35px;
        background-image:url(https://img.wifenxiao.com/h5-wfx/images/order/adreess_log_self.png);
      }
    }
    .left{
      width:31px;
      height:38px;
      margin-right:24px;
      background-image:url(https://img.wifenxiao.com/h5-wfx/images/order/adreess_log.png);
      background-size:100% 100%;
      background-repeat: no-repeat;
    }
    .right{
      flex:1;
    }
    .name{
      color: #666;
    }
    svg{
      font-weight: bold;
      font-size: 20px;
    }
    .addr{
      font-size:32px;
      font-weight: bold;
      margin-bottom: 6px;
      // color:#999;
    }
  }
  &.order-goods {
    line-height:1;
    .goods-li {
      display: flex;
      flex: 1;
      padding-bottom:30px;
      &:last-child {
        padding-bottom:0;
      }
    }

    .order-goods-img {
      overflow: hidden;
      position: relative;
      width: 180px;
      height: 180px;
      border-radius: 10px;
      img {
        width: 100%;
      }
    }

    .order-goods-infor {
      display:flex;
      flex: 1;
      position: relative;
      margin-left: 16px;
      flex-flow: column;
      justify-content: space-between;
      .left{
        position:relative;
        flex:1;
      }
      .right{
        width:70px;
        margin-top:60px;
      }
    }

    .goods-title {
      @include lineClamp(24px, 1.4, 2);
      margin-bottom: 10px;
    }

    .item-tips-box{
      .item-tips{
        @include alignTop;
        font-size: 20px;
        line-height: 24px;
        padding: 5px 12px;
        background: #ddd;
        margin-right: 10px;
        margin-bottom: 12px;
        border-radius: 24px;
        @include btnGroup($fontDefault, $bgDefault);
        &.fontZhouQG{
          @include btnGroup($fontZhouQG, $bgZhouQG);
        }
        &.fontBaos{
          color:#fff;
          @include gradient(right,#FF2A40,#FE3C70);
        }
        // &.fontPresell{
        //   color:#653BE2;
        //   background: #F4F0FF;;
        // }
      }
    }

    .goods-props {
      // overflow: hidden;
      // text-overflow:ellipsis;
      // white-space: nowrap;
      @include lineClamp(22px, 24px, 1);
      height: 24px;
      color: #999999;
      margin-bottom:5px;
    }
    .price_num{
      overflow: hidden;
      .price_box{
        float: left;
        .price-scale {
          // color: #333;
          font-size: 24px;
          .num-font{
            font-size: 28px;
          }
        }
      }
      .price {
        em {
          font-size: 32px;
        }
      }
      .num {
        float: right;
        color: #333;
      }
    }

  }
  &.charge_adv{
    height: 180px;
    background: url(https://img.wifenxiao.com/h5-wfx/images/order/charge_adv.png) center/cover no-repeat;
    position: relative;
    .num{
      position: absolute;
      font-size: 26px;
      color: #fff;
      bottom: 20px;
      right: 140px;
    }
  }
}
.txtTip{
  padding: 12px;
  color: #ff8a00;
  font-size: 24px;
}
.upload {
  background: #fff;
  margin: 0 auto 30px;
  position: relative;
  width: 480px;
  .uploadfile{
    .van-uploader__file,.van-uploader__upload,.van-uploader__input-wrapper,.van-icon__image img{
      width: 480px;
      height: 270px;
      img{
        height: 100%;
      }
    }
  }
}

.money-box{
  padding-bottom: 30px;
  padding-top: 15px;
  p{
    line-height: 50px;
    font-size: 26px;
    text-align: right;
    .menoy-num{
      color: #F30C23;
      .price-scale {
        font-size: 28px;
        .num-font{
          font-size: 40px;
        }
      }

    }
  }
  .dollar-price{
    font-weight: bold;
  }
}

.dollar-price {
  color: #FFA101;
  padding: 0 15px;
  position: relative;
  &::after{
    content: '';
    position: absolute;
    width: 1px;
    height: 20px;
    background: #ccc;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }
}
.msettlement_sub{
  padding: 11px 30px;
  background: #fff;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 111;
  padding-bottom: constant(safe-area-inset-bottom); /*兼容 IOS<11.2*/
  padding-bottom: env(safe-area-inset-bottom); /*兼容 IOS>11.2*/
  //padding-bottom: calc(102px + env(safe-area-inset-bottom));

  // 多买优惠不参与优惠叠加提示
  .bmd-tips{
    display:flex;
    align-items: center;
    padding:12px 0 24px;
    i{
      display:inline-block;
      width:28px;
      height:28px;
      margin:0 14px 0 20px;
      background:url(https://img.wifenxiao.com/h5-wfx/images/icon_tips.png) center;
      background-size:100% 100%;
    }
  }

  .btn-addorder{
    line-height: 72px;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    border-radius: 72px;
  }
}
.purchase_agreement{
  padding: 15px 0;
  display: flex;
  justify-content: center;
  font-size: 24px;
  color: #666666;
  &_noflex{
    display: block;
    // width: 500px;
    margin: 0 30px;
    .purchase_agreement-checkbox{
      width: 100%;
      margin-right: 0!important;
      margin-bottom: 10px;
      justify-content: flex-start!important;
      &:last-child{
        margin-bottom: 0;
      }
    }
    .van-checkbox__label{
      display: flex;
      align-items: center;
      width: 100%;
      span{
        display: block;
        overflow:hidden;
        text-overflow:ellipsis;
        white-space:nowrap;
        line-height: 28px;
        &.tips{
          max-width: 55%;
        }
        &.title{
          max-width: 45%;
        }
      }
    }
  }
  .title{
    color: #F21228;
  }
  .purchase_agreement-checkbox{
    margin-right: 15px;
    justify-content: center;
  }
}
.purchase_agreement_container{
  max-height: 44vh;
  padding: 20px;
  border-bottom: 1px solid #EDEDED;
  overflow-y: auto;
}
.payment-details{
  height: 500px;
  .need-pay{
    width: 100%;
    padding: 50px 0 30px;
    text-align: center;
    .price-scale{
      font-size: 48px;
      .num-font{
        font-size: 60px;
      }
    }
  }
  .pay-way-box{
    display: flex;
    border-bottom: 1px solid #EDEDED;
    line-height: 72px;
    padding: 0 30px;
    font-size: 28px;
    .pay-way{
      flex: 1;
      color: #666;
    }
    .pay-way-content{
      flex: 1;
      text-align: right;
    }
    .price-scale {
      color: #333;
    }
    p{
      padding: 10px 0;
      line-height: 32px;
    }
  }
}
.paymethodnote{
  padding: 10px 0;
  border-top: 1px solid #EDEDED;
  color: #8a8989;
  span {
    color: #fe7a04;
  }
}
.dz_wm{
  color: red;
  line-height: 1.5;
  font-size: 24px;
}
.paypopnote {
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: rgba(0,0,0,.7);
  text-align: center;
  color: #fff;
  font-size: 32px;
  position: fixed;
  z-index: 99998;
  span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
  }
}

.van-checkbox__icon--checked .van-icon{
  background: url(https://img.wifenxiao.com/h5-wfx/images/check_icon.png) center/cover no-repeat;
}
.van-checkbox__icon .van-icon{
  width: 28px;
  height: 28px;
  visibility: hidden;
}
.van-checkbox{
  position: relative;
  .img-icon{
    width: 28px;
    height: 28px;
  }
  .van-checkbox__label{
    margin-left: 16px;
  }
}
.purchase_agreement{
  .van-checkbox__icon .van-icon{
    visibility: visible;
  }
}
